package com.netease.b.a;

import com.netease.f.b;
import com.netease.framework.a.k;
import com.netease.framework.a.m;
import com.netease.pris.atom.ad;
import com.netease.pris.b.a;
import java.util.Iterator;
import java.util.List;

public class w extends ag
{
  m a;
  ag b;

  protected w(int paramInt, ag paramag)
  {
    super(paramInt);
    this.b = paramag;
  }

  public static w a()
  {
    return new w(0, null);
  }

  public static w a(ag paramag)
  {
    return new w(0, paramag);
  }

  protected void a(int paramInt, Object paramObject)
  {
    super.a(paramInt, paramObject);
    if ((this.b != null) && (!this.b.o()) && (this.b.g() != null))
      this.b.g().a(this.b);
  }

  protected void b(int paramInt, Object paramObject)
  {
    super.b(paramInt, paramObject);
    if ((this.b != null) && (!this.b.o()))
    {
      this.b.b(10001, "");
      this.b.h();
    }
  }

  public void b(com.netease.pris.protocol.d paramd)
  {
    c(paramd);
  }

  public void c()
  {
    k localk = null;
    switch (n())
    {
    default:
      if (localk != null)
        break;
      h();
    case 0:
    }
    while (true)
    {
      return;
      localk = com.netease.pris.protocol.c.b();
      break;
      this.a = localk;
      this.a.d(true);
      this.a.g(true);
      a(this.a);
    }
  }

  void c(com.netease.pris.protocol.d paramd)
  {
    if ((paramd == null) || (paramd.g == null))
      return;
    a.a(d.h().a(), paramd.g.M());
    a.c(System.currentTimeMillis());
    b localb1 = paramd.g.c("pris:statcontrol");
    int i;
    if (localb1 != null)
    {
      List localList = localb1.d("c");
      if (localList != null)
      {
        Iterator localIterator = localList.iterator();
        i = 0;
        if (localIterator.hasNext())
        {
          b localb2 = (b)localIterator.next();
          int j = localb2.a("k", 0);
          if ("1".equals(localb2.a("v")));
          int k;
          switch (j)
          {
          default:
            k = i;
          case 1:
          case 2:
          case 3:
          case 4:
          }
          while (true)
          {
            i = k;
            break;
            k = i | 0x1;
            continue;
            k = i | 0x2;
            continue;
            k = i | 0x4;
            continue;
            k = i | 0x8;
          }
        }
      }
      else
      {
        i = 0;
      }
      if ("1".equals(localb1.a("wifionly")))
        i |= 256;
    }
    while (true)
    {
      a.a(i);
      com.netease.pris.d.c.a(i);
      break;
      i = 0;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.a.w
 * JD-Core Version:    0.6.0
 */